<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Jaws.Core.Web.Entities.Recipes.Recipe>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    ShowRecipe
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        ShowRecipe</h2>
    <fieldset>
        <legend>
            <%= Html.Encode(Model.Name) %></legend>
        <p>
            Ingredients:
            <%
                foreach (string ingredient in Model.Ingredients)
                {
            %>
            <%=Html.Encode(ingredient) %><%
                                             }
            %>
        </p>
        <p>
            Instructions:
            <%= Html.Encode(Model.Instructions) %>
        </p>
    </fieldset>
    <p>
        <%=Html.ActionLink("Edit", "Edit", new { ID = Model.Id }) %>
        |
        <%=Html.ActionLink("Back to List", "Index") %>
    </p>
</asp:Content>
